package com.xingzuo.library_user.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.xingzuo.base.app.AppActivityKey;
import com.xingzuo.base.ui.mvp.base.ui.BaseMvpActivity;
import com.xingzuo.library_user.R;
import com.xingzuo.library_user.R2;
import com.xingzuo.library_user.presenter.LookAstrolabePresenter;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

@Route(path = AppActivityKey.LOOKASTROLABEACTIVITY)
public class LookAstrolabeActivity extends BaseMvpActivity<LookAstrolabePresenter> {
    @BindView(R2.id.rv_back)
    ImageView rvBack;
    @BindView(R2.id.tv_jisuan)
    TextView tvJisuan;

    @Override
    public LookAstrolabePresenter getPresenter() {
        return new LookAstrolabePresenter();
    }

    @Override
    public int getView() {
        return R.layout.activity_lookastrolabe;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initLinsenterner() {

    }

    @Override
    public void getData() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @OnClick({R2.id.rv_back, R2.id.tv_jisuan})
    public void onViewClicked(View view) {
        int id = view.getId();
        if (id == R.id.rv_back) {
            finishActivity();
        } else if (id == R.id.tv_jisuan) {
            startIntent(AppActivityKey.CALCULATEMATCHACTIVITY);
        }
    }
}